﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace CMD.BAL.MISC
{
    public class ObtieneRespVentas
    {
        public string Nombre;
        public string HRCode;
        public string Territorio;
        public string IdTerritorio;

        public  ObtieneRespVentas()
        {
            GetData();   
        }

        private void GetData()
        {

            DataTable dt;
            //ejecutar store
            
            dt = CMD_DKT.DAL.SrvDB.ExecuteQuery("exec SP_CMD_GET_RES_FVTAS");

            HRCode = dt.Rows[0]["EmployeeHRCode"].ToString();
            Nombre = dt.Rows[0]["EmployeeFirstName"].ToString();
            Territorio = dt.Rows[0]["PositionCode"].ToString();
            IdTerritorio = dt.Rows[0]["GeoTreeAreaId"].ToString();
            
        }
    }
}
